package org.lex.awt;

import static java.lang.System.out;

import java.awt.GraphicsEnvironment;
import java.awt.Point;
import java.awt.Toolkit;

public class Screen {
	public static void main(String[] args) {
		out.println("Center  Point: " + GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint());
		out.println("Max.   Window: " + GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds());
		out.println("Defauld Bound: "
				+ GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration().getBounds());
		out.println("Screen   Size: " + Toolkit.getDefaultToolkit().getScreenSize());
	}

	public static Point getCenterPoint() {
		return GraphicsEnvironment.getLocalGraphicsEnvironment().getCenterPoint();
	}

	private Screen() {
	}
}
